#!/bin/sh
npath="/dev/nvme"
count=0
for((i=0;i<40;i++)); do
    numStr=$(ls ${npath}${i})
    if [[ "${numStr}" == "${npath}${i}" ]]; then
        $((count++))
    fi
done
echo ${count}
